package dao;

import java.sql.SQLException;
import java.util.List;

import entries.User;

public interface UserDao {
    
    void create (User user)throws SQLException, ClassNotFoundException;
    
    void update (User user)throws SQLException, ClassNotFoundException;
    
    void remove (User user)throws SQLException, ClassNotFoundException;
    
    List <User> findAll()throws SQLException, ClassNotFoundException;
    
    User findByLogin(String login)throws SQLException, ClassNotFoundException;
    
    User findByEmail(String email)throws SQLException, ClassNotFoundException;

}
